package com.sxpi.user.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 董伟豪
 * @Date: 2022/10/25 17:13
 */
@RestController
@Slf4j
@RefreshScope
public class TestController {

    @Value("${minio.url}")
    private String url;
    @Value("${minio.name}")
    private String name;

    @GetMapping("/getevn")
    public String getString(){
        return url + "_" + name;
    }
}
